﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_place_resident")]
    public partial class ZmPlaceResident : Repository.IEntity
    {
        [Key]
        [Column("id")]
        [StringLength(255)]
        public string Id { get; set; }
        [Column("place_name")]
        [StringLength(255)]
        public string PlaceName { get; set; }
        [Column("householder")]
        [StringLength(255)]
        public string Householder { get; set; }
        [Column("contact")]
        [StringLength(255)]
        public string Contact { get; set; }
        [Column("house_id")]
        [StringLength(255)]
        public string HouseId { get; set; }
        [Column("max_population")]
        public int? MaxPopulation { get; set; }
        [Column("use_electric_bicycle")]
        public int? UseElectricBicycle { get; set; }
        [Column("use_bottled_liquefied_gas")]
        public int? UseBottledLiquefiedGas { get; set; }
        [Column("use_stacked_items")]
        public int? UseStackedItems { get; set; }
        [Column("use_burglar_mesh")]
        public int? UseBurglarMesh { get; set; }
        [Column("use_ceiling")]
        public int? UseCeiling { get; set; }
        [Column("is_completely_isolated")]
        public int? IsCompletelyIsolated { get; set; }
        [Column("use_flammable_materials")]
        public int? UseFlammableMaterials { get; set; }
        [Column("unauthorized_electrical_connect")]
        public int? UnauthorizedElectricalConnect { get; set; }
        [Column("charging_facilities_no_standard")]
        public int? ChargingFacilitiesNoStandard { get; set; }
        [Column("not_enough_exits")]
        public int? NotEnoughExits { get; set; }
        [Column("use_electric_bicycle_photo", TypeName = "json")]
        public string UseElectricBicyclePhoto { get; set; }
        [Column("use_bottled_liquefied_gas_photo", TypeName = "json")]
        public string UseBottledLiquefiedGasPhoto { get; set; }
        [Column("use_stacked_items_photo", TypeName = "json")]
        public string UseStackedItemsPhoto { get; set; }
        [Column("use_burglar_mesh_photo", TypeName = "json")]
        public string UseBurglarMeshPhoto { get; set; }
        [Column("use_ceiling_photo", TypeName = "json")]
        public string UseCeilingPhoto { get; set; }
        [Column("is_completely_isolated_photo", TypeName = "json")]
        public string IsCompletelyIsolatedPhoto { get; set; }
        [Column("use_flammable_materials_photo", TypeName = "json")]
        public string UseFlammableMaterialsPhoto { get; set; }
        [Column("unauthorized_electrical_connect_photo", TypeName = "json")]
        public string UnauthorizedElectricalConnectPhoto { get; set; }
        [Column("charging_facilities_no standard_photo", TypeName = "json")]
        public string ChargingFacilitiesNoStandardPhoto { get; set; }
        [Column("not_enough_exits_photo", TypeName = "json")]
        public string NotEnoughExitsPhoto { get; set; }
        [Column("householder_sign")]
        [StringLength(255)]
        public string HouseholderSign { get; set; }
        [Column("fire_inspector_sign")]
        [StringLength(255)]
        public string FireInspectorSign { get; set; }
        [Column("chong_dian_village")]
        public int? ChongDianVillage { get; set; }
        [Column("level")]
        public int? Level { get; set; }
        [Column("real_population")]
        public int? RealPopulation { get; set; }
        [Column("real_population_above_3 floors")]
        public int? RealPopulationAbove3Floors { get; set; }
        [Column("integration_inspector_sign")]
        [StringLength(255)]
        public string IntegrationInspectorSign { get; set; }
        [Required]
        [Column("create_by")]
        [StringLength(50)]
        public string CreateBy { get; set; }
        [Column("create_on", TypeName = "timestamp(6) without time zone")]
        public DateTime CreateOn { get; set; }
        [Column("create_ip")]
        [StringLength(20)]
        public string CreateIp { get; set; }
        [Column("modified_by")]
        [StringLength(50)]
        public string ModifiedBy { get; set; }
        [Column("modified_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? ModifiedOn { get; set; }
        [Column("modified_ip")]
        [StringLength(20)]
        public string ModifiedIp { get; set; }
        [Column("is_delete")]
        public short? IsDelete { get; set; }
        [Column("delete_by")]
        [StringLength(50)]
        public string DeleteBy { get; set; }
        [Column("delete_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? DeleteOn { get; set; }
        [Column("delete_ip")]
        [StringLength(20)]
        public string DeleteIp { get; set; }
        [Column("type")]
        public int? Type { get; set; }
        [Column("building_floors")]
        public int? BuildingFloors { get; set; }
        [Column("lease_rooms")]
        public int? LeaseRooms { get; set; }
        [Column("lease_room_peoples")]
        public int? LeaseRoomPeoples { get; set; }
        [Column("security")]
        public string Security { get; set; }
        [Column("security_remediation")]
        public string SecurityRemediation { get; set; }
        [Column("illegal_construction")]
        public string IllegalConstruction { get; set; }
        [Column("illegal_construction_remediation")]
        public string IllegalConstructionRemediation { get; set; }
        [Column("city_admin_audit")]
        public int? CityAdminAudit { get; set; }
        [Column("city_admin_audit_mind")]
        [StringLength(255)]
        public string CityAdminAuditMind { get; set; }
        [Column("area_admin_audit")]
        public int? AreaAdminAudit { get; set; }
        [Column("area_admin_audit_mind")]
        [StringLength(255)]
        public string AreaAdminAuditMind { get; set; }
        [Column("street_admin_audit")]
        public int? StreetAdminAudit { get; set; }
        [Column("street_admin_audit_mind")]
        [StringLength(255)]
        public string StreetAdminAuditMind { get; set; }
        [Column("community_admin_audit")]
        public int? CommunityAdminAudit { get; set; }
        [Column("yhcsbh")]
        [StringLength(255)]
        public string Yhcsbh { get; set; }
        [Column("pczt")]
        public int? Pczt { get; set; }
        [Column("location")]
        [StringLength(255)]
        public string Location { get; set; }
        [Column("escape_stairs_num")]
        public int? EscapeStairsNum { get; set; }
        [Column("first_exit_num")]
        public int? FirstExitNum { get; set; }
        [Column("first_floor_area")]
        public double? FirstFloorArea { get; set; }
        [Column("smoke_alarm_num")]
        public int? SmokeAlarmNum { get; set; }
        [Column("simple_sprinkler_system_num")]
        public int? SimpleSprinklerSystemNum { get; set; }
        [Column("use_flammable_insulation_materials")]
        public int? UseFlammableInsulationMaterials { get; set; }
        [Column("use_flammable_dangerous_goods")]
        public int? UseFlammableDangerousGoods { get; set; }
        [Column("above_three_floor_self")]
        public int? AboveThreeFloorSelf { get; set; }
        [Column("use_independent_smoke_alarm")]
        public int? UseIndependentSmokeAlarm { get; set; }
        [Column("above_three_floors_escape")]
        public int? AboveThreeFloorsEscape { get; set; }
        [Column("use_flammable_insulation_materials_photo", TypeName = "json")]
        public string UseFlammableInsulationMaterialsPhoto { get; set; }
        [Column("use_flammable_dangerous_goods_photo", TypeName = "json")]
        public string UseFlammableDangerousGoodsPhoto { get; set; }
        [Column("above_three_floor_self_photo", TypeName = "json")]
        public string AboveThreeFloorSelfPhoto { get; set; }
        [Column("use_independent_smoke_alarm_photo", TypeName = "json")]
        public string UseIndependentSmokeAlarmPhoto { get; set; }
        [Column("above_three_floors_escape_photo", TypeName = "json")]
        public string AboveThreeFloorsEscapePhoto { get; set; }
        [Column("building_address")]
        [StringLength(255)]
        public string BuildingAddress { get; set; }
        [Column("actual_person")]
        [StringLength(255)]
        public string ActualPerson { get; set; }
        [Column("actual_person_phone")]
        [StringLength(255)]
        public string ActualPersonPhone { get; set; }
        [Column("above_three_floor_max_population")]
        public int? AboveThreeFloorMaxPopulation { get; set; }
        [Column("check_mind")]
        public string CheckMind { get; set; }
        [Column("check_photo", TypeName = "json")]
        public string CheckPhoto { get; set; }
        [Column("numyhwt_ga")]
        public int? NumyhwtGa { get; set; }
        [Column("numyhwt_xf")]
        public int? NumyhwtXf { get; set; }
        [Column("yhlx_ga")]
        public int? YhlxGa { get; set; }

        //[Column("numyhwt_xf_xy")]
        //public int? numyhwt_xf_xy { get; set; }
        //[Column("numyhwt_xf_fx")]
        //public int? numyhwt_xf_fx { get; set; }

        [Column("deal_state")]
        public int? DealState { get; set; }
    }
}
